package com.yueyang.sojourn.server.model.dto;

import com.yueyang.sojourn.server.model.enums.OrderTypeEnum;
import com.yueyang.sojourn.server.validation.annotation.EnumValid;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

/**
 * 订单退款
 * @author andy.yang
 * @summary
 * @Copyright (c) 2020, Yueyang Group All Rights Reserved.
 * @since 2020-03-29 10:45
 */
@Data
@ApiModel("新增退款单")
public class AddOrderRefundDto {

    /**
     * 订单id
     */
    @ApiModelProperty(value = "订单id", required = true)
    @NotNull(message = "[订单id]不能为空")
    private Long orderId;
    /**
     * 退款原因
     */
    @ApiModelProperty(value = "退款原因")
    @NotNull(message = "[退款原因]不能为空")
    @NotEmpty(message = "[退款原因]不能为空")
    @Size(min = 5, max = 200, message = "可输入5至200个字")
    private String reason;

    /**
     * 第三方退款平台是否已经退款
     */
    @ApiModelProperty(value = "第三方退款平台是否已经退款: 0-未退款 1-已退款")
    @NotNull(message = "[退款原因]不能为空")
    private Integer thirdRefunded;

    /**验证码**/
    @ApiModelProperty(value = "验证码")
    @NotNull(message = "[验证码]不能为空")
    @NotEmpty(message = "[验证码]不能为空")
    private String captcha;

}
